<?php 
function getsub($pid){
	$cate=D('category');
	$where['parentid']=$pid;
	$cates = $cate->where($where)->select();
	return $cates;
}













 ?>